package com.seata.demo.cloud.datasource;

import org.springframework.transaction.TransactionDefinition;

import java.lang.annotation.*;

@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface CustomTransaction {
    String dataSource() default DynamicDataSource.ORIGIN_DATA_SOURCE;

    int propagation() default TransactionDefinition.PROPAGATION_REQUIRED;

    int isolation() default TransactionDefinition.ISOLATION_REPEATABLE_READ;

    boolean readOnly() default false;
}
